/**
 * (created at 2011-2-9)
 */
package qiushuo.mysqlparser.ast.fragment.tableref;

import qiushuo.mysqlparser.ast.statement.DMLSelectUnionStatement;
import qiushuo.mysqlparser.generator.SQLType;

/**
 * @author <a href="mailto:QiuShuo1985@gmail.com">QIU Shuo</a>
 */
public class SubqueryFactor implements TableReference {
    private final DMLSelectUnionStatement subquery;
    private final String alias;

    public SubqueryFactor(DMLSelectUnionStatement subquery, String alias) {
        super();
        this.subquery = subquery;
        this.alias = alias;
    }

    @Override
    public String generateSql(SQLType type) {
        // QS_TODO gen sql
        throw new UnsupportedOperationException("not implemented yet");
    }
}
